package create_pattern.build_pattern.builder_pattern;

/**
 * 创建一个英雄人物
 */
public class HeroBuilder extends ActorBuilder{

    @Override
    public void buildType() {
        actor.setType("英雄");
    }

    @Override
    public void buildSex() {
        actor.setSex("男");
    }

    @Override
    public void buildFace() {
       actor.setFace("帅气");
    }

    @Override
    public void buildCostume() {
       actor.setCostume("战甲");
    }

    @Override
    public void buildHairstyle() {
       actor.setHairstyle("飘逸");
    }
}
